package org.mspring.platform.api.sitemap;

import java.util.HashMap;

class UrlUtils {

    static void checkUrl(String url, String baseUrl) {
        // Is there a better test to use here?
        if (!url.startsWith(baseUrl)) {
            throw new RuntimeException("Url " + url + " doesn't start with base URL " + baseUrl);
        }
    }

    static <K, V> HashMap<K, V> newHashMap() {
        return new HashMap<K, V>();
    }

}
